﻿using System;
using System.Reflection;
using MandelbrotLib;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
/*
            MandelbrotSet mb = new MandelbrotSet();
            mb.Calculate();

            for (int i = 0; i < 100; i++)
            {
                for (int j = 0; j < 100; j++)
                {
                    Console.Write("{0:000} ", mb[i, j]);
                }
                Console.WriteLine();
            }
*/

/*
            RealNumber rn = RealNumber.CreateByDenominator(-77, 4);
            Console.WriteLine("rn = {0}", rn.ToString());

            RealNumber rn2 = RealNumber.CreateByNumerator(-77 * 0x3d);
            Console.WriteLine("rn2 = {0}", rn2.ToString());

            RealNumber rn3 = rn.Mul(rn2);

            Console.WriteLine("rn3 = {0}", rn3.ToString());

            RealNumber rn4 = rn3.Add(rn2);

            Console.WriteLine("rn4 = {0}", rn4.ToString());

            RealNumber rn5 = rn.Add(rn4);

            Console.WriteLine("rn5 = {0}", rn5.ToString());

            RealNumber rn6 = rn5.Sub(rn);

            Console.WriteLine("rn6 = {0}", rn6.ToString());

            rn2 = rn2.Sub(rn6);
            Console.WriteLine("rn2 = {0}", rn2.ToString());
 */

            RealNumber r1 = RealNumber.CreateByNumerator(12);
            RealNumber rn = 1 + r1;
            Console.WriteLine("rn = {0}", rn.ToString());

        }
    }
}
